﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:manager="clr-namespace:ApartmentBillsManager.Start.Manager">
    
    <DataTemplate DataType="{x:Type manager:ManagerMainWindow}">
        <DockPanel>
            <Menu DockPanel.Dock="Top">
                <MenuItem Header="File">
                    <MenuItem Header="Create New Apartment" Command="{Binding CreateNewApartmentCommand}"/>
                    <Separator/>
                    <MenuItem Header="Edit Current Apartment" Command="{Binding EditCurrentApartmentCommand}" IsEnabled="{Binding IsApartmentLoaded, Mode=OneWay}"/>
                    <Separator/>
                    <MenuItem Header="Save Current Apartment" Command="{Binding SaveApartmentCommand}" IsEnabled="{Binding IsApartmentLoaded, Mode=OneWay}"/>
                    <MenuItem Header="Save Current Apartment As..." Command="{Binding SaveApartmentAsCommand}" IsEnabled="{Binding IsApartmentLoaded, Mode=OneWay}"/>
                    <MenuItem Header="Load Existing Apartment" Command="{Binding LoadExistingApartmentCommand}"/>
                    <Separator/>
                    <MenuItem Header="Close Current Apartment" Command="{Binding CloseCurrentApartmentCommand}" IsEnabled="{Binding IsApartmentLoaded, Mode=OneWay}"/>
                    <Separator/>
                    <MenuItem Header="Exit" Command="{Binding ExitCommand}"/>
                </MenuItem>
            </Menu>
            
            <Grid>
                <ContentPresenter Content="{Binding CurrentContent}"/>
            </Grid>
            
        </DockPanel>
    </DataTemplate>
    
</ResourceDictionary>